﻿using System;

namespace eShop.Web.Mobile
{
    public class AreaRegistration : System.Web.Mvc.AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "mob";
            }
        }

        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            //http://www.360doc.com/content/14/0729/09/10504424_397815048.shtml
            //此路由不能删除
            context.MapRoute("mobile_default",
                             "mob/{controller}/{action}",
                              new { controller = "home", action = "index", area = "mob" },
                              new[] { "eShop.Web.Mobile.Controllers" }); //eshop.web网站下的Mobile区域控制器

        }
    }
}
